<template>
   <!-- 弹层 -->
  <div class="more-action">
     <van-cell-group v-if="!isReport">
        <van-cell title="不感兴趣" @click="$emit('dislike')"/>
        <van-cell title="反馈垃圾内容" is-link @click="isReport=true"/>
        <van-cell title="拉黑作者" />
     </van-cell-group>
      <!-- 状态二 反馈-->
      <van-cell-group v-else>
        <van-cell icon="arrow-left" @click="isReport=false"> 返回 </van-cell>
        <van-cell v-for="item in reportTypeList"
        :key="item.value"
        @click="$emit('report',item.value)"
        > {{item.label}}</van-cell>
     </van-cell-group>
  </div>
</template>

<script>
// 从常量模块中导入
import reportTypeList from '@/constant/reports.js'
export default {
  name: 'MoreAction',
  data () {
    return {
      // reportTypeList: reportTypeList,
      reportTypeList,
      isReport: false // 是否时处于状态二：反馈
    }
  }
}
</script>
